#include "../headers/mainwindow.h"
#include "../ui/ui_mainwindow.h"
#include <QTranslator>
#include <QMessageBox>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    ui->robotMenu->setTitle(tr("robot_menu"));
    ui->openRobotAction->setText("open_robot_action");

    connect(ui->openRobotAction,&QAction::triggered,this,&MainWindow::onOpenRobotClick);
}

 void MainWindow::onOpenRobotClick()
{
   QMessageBox::warning(this, "message","打开");
}
MainWindow::~MainWindow()
{
    delete ui;
}
